<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>会员管理</title>
    <script type="text/javascript" src="public/jquery-3.2.0.min.js"></script>
    <style type="text/css">
    table{
            text-align: center;
            font-size: 16px;
            margin:0 auto;
            border-left: #1a0c0c 1px solid;
            border-top: #1a0c0c 1px solid;
        }
        td{
            border-right: #1a0c0c 1px solid;
            border-bottom: #1a0c0c 1px solid;
            padding: 4px 6px;
        }
        a{
            display: inline-block;
            margin: 1px 5px;
            padding:1px 5px;
            text-decoration: none;
            background: #DDDDDD;
            border: #dddddd 1px solid;
            font-size: 14px;
        }
        input{
            text-align: center;
            border: none;
            font-size: 14px;
            width:80px;
            overflow-x:visible;
            overflow-y:visible;
        }
        #textarea{
            width:220px;
            overflow-x:visible;
            overflow-y:visible;
        }
    </style>
</head>
<body>
<h1 align="center">用户信息管理</h1>
<p style="text-align: center">
    您好，<span style="color: #1c11ff"><?php echo $_SESSION[$nname];?></span>
    当前用户数:<?php echo count($arr);?>
    <a href="index.php?c=Admin&a=index&ex=exit" style="display: inline">退出系统</a>
</p>
<div>
    <table cellpadding="0" cellspacing="0">
        <thead>
        <tr>
            <td>id</td>
            <td>uid</td>
            <td>账号</td>
            <td>昵称</td>
            <td>头像</td>
            <td>个性签名</td>
            <td>操作</td>
        </tr>
        </thead>
        <tbody>
        <?php
        for ($i=0;$i<count($arr);$i++){
            $arr1=$arr[$i] ;
            ?>
            <form action="index.php?c=Admin&a=index&cid=<?php echo $arr1[1] ?>" method="post" enctype="multipart/form-data">
                <tr>
                    <td><?php echo $arr1[0] ?></td><!--信息表ID-->
                    <td><?php echo $arr1[1] ?></td><!--信息表UID，注册表的ID-->
                    <td><?php echo $arr1[2] ?></td><!--注册用户名-->
                    <td><input type='text' name="name" value='<?php echo $arr1[3] ?>'></td><!--昵称-->
                    <td>
                        <img style='width:40px;height:40px;'src='<?php echo "public/".$arr1[4] ?>'>
                        <input type="file" name="file" >
                    </td><!--个人头像-->
                    <td>
                        <input type='textarea' name="action" id="textarea" value='<?php echo $arr1[5] ?>' >
                    </td><!--签名-->
                    <td>
                        <a href='index.php?c=Admin&a=index&act=del&id=<?php echo $arr1[1];?>'>删除记录</a>
                        <input type="submit" name="submit" value="提交更改">
                    </td>
                </tr>
            </form>
            <?php
        }
        ?>
        </tbody>
    </table>
</div>
</body>
</html>
